package gruppe1projekt.ModelLayer;

import gruppe1projekt.GUILayer.prototypes.IncludeInColumn;

public class RentableItem
    {

    private String type;
    private String description;
    private double dayPrice;
    private long serialNumber;
    private Boolean IsRented;

    /**
     * Constructor.
     */
    public RentableItem(String type, String description, double dayPrice, long serialNumber)
    {
        this.type = type;
        this.description = description;
        this.dayPrice = dayPrice;
        this.serialNumber = serialNumber;
        this.IsRented = false;
    }

    public RentableItem()
    {
    }

    @IncludeInColumn(ColumnName="Udlejet")
    public Boolean getIsRented()
    {
        return IsRented;
    }

    public void setIsRented(Boolean IsRented)
    {
        this.IsRented = IsRented;
    }

    /**
     * Set & get methods
     */
    public void setDayPrice(double dayPrice)
    {
        this.dayPrice = dayPrice;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public void setSerialNumber(long serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    @IncludeInColumn(ColumnName="Dagspris")
    public Double getDayPrice()
    {
        return dayPrice;
    }

    public String getDescription()
    {
        return description;
    }

    @IncludeInColumn(ColumnName="Serienummer")
    public Long getSerialNumber()
    {
        return serialNumber;
    }

    @IncludeInColumn(ColumnName="Type")
    public String getType()
    {
        return type;
    }

    @Override
    public String toString()
    {
        return serialNumber + " - " + type;
    }

    }
